package cn.xt.dao.houselist;

import cn.xt.bean.HouseCondition;
import cn.xt.bean.HouseInfo;

import java.util.List;

/**
 * @author ifdestiny
 * @create 2018-11-22 11:02
 */

public interface HouseListMapper {

    /**
     * 房子信息查询
     * @param houseCondition 查询条件
     * @return
     */
    List<HouseInfo> getHouseList(HouseCondition houseCondition);

    /**
     * 房子总数
     * @param houseCondition
     * @return
     */
    Integer getHouseCount(HouseCondition houseCondition);

    /**
     * 首页推荐
     * @return
     */
    List<HouseInfo> getHouseRecommend();

    /**
     * 详情页面
     * @param houseId 房子id
     * @return
     */
    HouseInfo getHouseDetail(Integer houseId);
}
